package cn.qio.bootstrap;

import java.nio.channels.Selector;

public class TestSelector {

	private static final int MAXSIZE = 5;

	public static final void main(String argc[]) {
		Selector[] sels = new Selector[MAXSIZE];
		try {
			for (int i = 0; i < MAXSIZE; ++i) {
				sels[i] = Selector.open();
				System.out.println("open " + i);
			}
			Thread.sleep(30000);
		} catch (Exception ex) {
			throw new RuntimeException(ex);
		}
	}
}